-- GENERATED SPELL FOR [Defias Diver] --


function spell0_23591(pUnit, Event) --@Spear Throw,n/a--
pUnit:FullCastSpellOnTarget(43107,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23591', 17000, 1)
end

function Sorts_23591(pUnit, Event)
local choix_sorts_23591 = math.random(0, 0)
if choix_sorts_23591 == 0 then
pUnit:RegisterEvent('spell0_23591', 1, 1)
end
end

function mob23591_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23591', math.random(1500, 3000), 1)
end

function mob23591_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23591_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23591_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23591, 1, 'mob23591_Action')
RegisterUnitEvent(23591, 2, 'mob23591_Leave')
RegisterUnitEvent(23591, 3, 'mob23591_Kill')
RegisterUnitEvent(23591, 4, 'mob23591_Die')
